package cn.com.cym.gamezao.base;

import cn.com.cym.gamezao.enums.StrType;
import io.swagger.models.auth.In;
import lombok.Getter;

/**
 * 请求返回结果
 */
@Getter
public class ResultResponse {


    private String message;

    /**
     * 设置消息的格式
     */
    private StrType strType;


    /**
     * 状态
     */
    private Integer status;


    /**
     * 结果
     */
    private String result;


    public ResultResponse setMessage(String message){
        this.message=message;
        return this;
    }


    public ResultResponse setStrType(StrType strType){
        this.strType=strType;
        return this;
    }


    public ResultResponse setStatus(Integer status){
        this.status=status;
        return  this;
    }

    public ResultResponse(String message,Integer status){
        this.message=message;
        this.status=status;
        this.strType=StrType.STRING;
    }

    public ResultResponse(String result,String message,Integer status){
        this.message = message;
        this.result=result;
        this.status=status;
        this.strType=StrType.STRING;
    }


    public ResultResponse(String message, Integer status, StrType strType){
        this.message=message;
        this.strType=strType;
        this.status=status;
    }

}
